package com.tengju.user.domain.model.user;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.tengju.user.domain.shared.IdObject;

public class FrontUserIdCode extends IdObject {

    /**
     * Instantiates a new Id object.
     *
     * @param value the value
     */

    public FrontUserIdCode(long value) {
        super(value);
    }

    @Override
    @JsonValue
    public long getValue() {
        return super.getValue();
    }

    @JsonCreator
    public static FrontUserIdCode of(Long idCode) {
        if (idCode == null) {
            return null;
        }
        return new FrontUserIdCode(idCode);
    }
}
